﻿using Microsoft.AspNetCore.Mvc;
using RedisDemo.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace RedisDemo.Controllers
{
    [Route("[controller]/[action]")]
    [ApiController]
    public class LogController : ControllerBase
    {
        private readonly LogService _logService;

        public LogController(LogService logService)
        {
            _logService = logService;
        }

        [HttpGet]
        public async Task<string> LogCommonAsync()
        {
            await _logService.LogCommonAsync("LogTest", "Redis Log Test");

            return "success";
        }
    }
}
